<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>show6</title>
</head>
<body>
<div th:text="${users}">
</div>

<ul>
    <li th:each="user : ${users}">
        1<span th:text="${user.name}"></span>
        2 <span th:text="${user.age}"></span>
    </li>

</ul>
===========================================================
<ul>
    <li th:each="user,stat : ${users}">
        1<span th:text="${stat.index+1}"></span>
        2 <span th:text="${user.age}"></span>
    </li>

</ul>
</body>
</html>